﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.BlagajnaStavka"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class BlagajnaStavkaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// ComboBox for the IDBlagajnaIzvjestaj property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDBlagajnaIzvjestaj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDBlagajnaIzvjestaj property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDBlagajnaIzvjestajLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumDokumenta property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumDokumenta;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumDokumenta property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumDokumentaLabel;
		
		/// <summary>
		/// TextBox for the Ulaz property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxUlaz;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Ulaz property.
		/// </summary>
		protected System.Windows.Forms.Label uxUlazLabel;
		
		/// <summary>
		/// TextBox for the Izlaz property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIzlaz;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Izlaz property.
		/// </summary>
		protected System.Windows.Forms.Label uxIzlazLabel;
		
		/// <summary>
		/// DataTimePicker for the DateUICreated property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDateUICreated;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DateUICreated property.
		/// </summary>
		protected System.Windows.Forms.Label uxDateUICreatedLabel;
		
		/// <summary>
		/// TextBox for the Opis property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOpis;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Opis property.
		/// </summary>
		protected System.Windows.Forms.Label uxOpisLabel;
		
		/// <summary>
		/// ComboBox for the IDKonto property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKonto;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKonto property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKontoLabel;
		
		/// <summary>
		/// TextBox for the Primatelj property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPrimatelj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Primatelj property.
		/// </summary>
		protected System.Windows.Forms.Label uxPrimateljLabel;
		
		/// <summary>
		/// TextBox for the IDOrganizacija property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDOrganizacija;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOrganizacija property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOrganizacijaLabel;
		
		/// <summary>
		/// TextBox for the TipStavke property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTipStavke;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the TipStavke property.
		/// </summary>
		protected System.Windows.Forms.Label uxTipStavkeLabel;
		
		/// <summary>
		/// ComboBox for the IDKlijent property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKlijent;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKlijent property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKlijentLabel;
		#endregion
		
		#region Main entity
		private Entities.BlagajnaStavka _BlagajnaStavka;
		/// <summary>
		/// Gets or sets the <see cref="Entities.BlagajnaStavka"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.BlagajnaStavka"/> instance.</value>
		public Entities.BlagajnaStavka BlagajnaStavka
		{
			get {return this._BlagajnaStavka;}
			set
			{
				this._BlagajnaStavka = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDBlagajnaIzvjestaj.DataBindings.Clear();
			this.uxIDBlagajnaIzvjestaj.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDBlagajnaIzvjestaj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumDokumenta.DataBindings.Clear();
			this.uxDatumDokumenta.DataBindings.Add("Value", this.uxBindingSource, "DatumDokumenta", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxUlaz.DataBindings.Clear();
			this.uxUlaz.DataBindings.Add("Text", this.uxBindingSource, "Ulaz", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIzlaz.DataBindings.Clear();
			this.uxIzlaz.DataBindings.Add("Text", this.uxBindingSource, "Izlaz", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDateUICreated.DataBindings.Clear();
			this.uxDateUICreated.DataBindings.Add("Value", this.uxBindingSource, "DateUICreated", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOpis.DataBindings.Clear();
			this.uxOpis.DataBindings.Add("Text", this.uxBindingSource, "Opis", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKonto.DataBindings.Clear();
			this.uxIDKonto.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKonto", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPrimatelj.DataBindings.Clear();
			this.uxPrimatelj.DataBindings.Add("Text", this.uxBindingSource, "Primatelj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOrganizacija.DataBindings.Clear();
			this.uxIDOrganizacija.DataBindings.Add("Text", this.uxBindingSource, "IDOrganizacija", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTipStavke.DataBindings.Clear();
			this.uxTipStavke.DataBindings.Add("Text", this.uxBindingSource, "TipStavke", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKlijent.DataBindings.Clear();
			this.uxIDKlijent.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKlijent", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="BlagajnaStavkaEditControlBase"/> class.
		/// </summary>
		public BlagajnaStavkaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_BlagajnaStavka != null) _BlagajnaStavka.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIDBlagajnaIzvjestaj = new System.Windows.Forms.ComboBox();
			uxIDBlagajnaIzvjestajLabel = new System.Windows.Forms.Label();
			this.uxDatumDokumenta = new System.Windows.Forms.DateTimePicker();
			uxDatumDokumentaLabel = new System.Windows.Forms.Label();
			this.uxUlaz = new System.Windows.Forms.TextBox();
			uxUlazLabel = new System.Windows.Forms.Label();
			this.uxIzlaz = new System.Windows.Forms.TextBox();
			uxIzlazLabel = new System.Windows.Forms.Label();
			this.uxDateUICreated = new System.Windows.Forms.DateTimePicker();
			uxDateUICreatedLabel = new System.Windows.Forms.Label();
			this.uxOpis = new System.Windows.Forms.TextBox();
			uxOpisLabel = new System.Windows.Forms.Label();
			this.uxIDKonto = new System.Windows.Forms.ComboBox();
			uxIDKontoLabel = new System.Windows.Forms.Label();
			this.uxPrimatelj = new System.Windows.Forms.TextBox();
			uxPrimateljLabel = new System.Windows.Forms.Label();
			this.uxIDOrganizacija = new System.Windows.Forms.TextBox();
			uxIDOrganizacijaLabel = new System.Windows.Forms.Label();
			this.uxTipStavke = new System.Windows.Forms.TextBox();
			uxTipStavkeLabel = new System.Windows.Forms.Label();
			this.uxIDKlijent = new System.Windows.Forms.ComboBox();
			uxIDKlijentLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxIDBlagajnaIzvjestajLabel
			//
			this.uxIDBlagajnaIzvjestajLabel.Text = "IDBlagajnaIzvjestaj:";
			this.uxIDBlagajnaIzvjestajLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDBlagajnaIzvjestajLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaIzvjestajLabel);			
			//
			// uxIDBlagajnaIzvjestaj
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaIzvjestaj);
			this.uxIDBlagajnaIzvjestaj.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDBlagajnaIzvjestaj);
			//
			// uxDatumDokumentaLabel
			//
			this.uxDatumDokumentaLabel.Text = "DatumDokumenta:";
			this.uxDatumDokumentaLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxDatumDokumentaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDokumentaLabel);			
			//
			// uxDatumDokumenta
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDokumenta);
			this.uxDatumDokumenta.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxDatumDokumenta);
			//
			// uxUlazLabel
			//
			this.uxUlazLabel.Text = "Ulaz:";
			this.uxUlazLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxUlazLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxUlazLabel);			
			//
			// uxUlaz
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxUlaz);
			this.uxUlaz.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxUlaz);
			//
			// uxIzlazLabel
			//
			this.uxIzlazLabel.Text = "Izlaz:";
			this.uxIzlazLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxIzlazLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIzlazLabel);			
			//
			// uxIzlaz
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIzlaz);
			this.uxIzlaz.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxIzlaz);
			//
			// uxDateUICreatedLabel
			//
			this.uxDateUICreatedLabel.Text = "DateUICreated:";
			this.uxDateUICreatedLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxDateUICreatedLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDateUICreatedLabel);			
			//
			// uxDateUICreated
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDateUICreated);
			this.uxDateUICreated.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxDateUICreated);
			//
			// uxOpisLabel
			//
			this.uxOpisLabel.Text = "Opis:";
			this.uxOpisLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxOpisLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpisLabel);			
			//
			// uxOpis
			//
			this.uxOpis.Width = 250;
			this.uxOpis.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpis);
			this.uxOpis.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxOpis);
			//
			// uxIDKontoLabel
			//
			this.uxIDKontoLabel.Text = "IDKonto:";
			this.uxIDKontoLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxIDKontoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoLabel);			
			//
			// uxIDKonto
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKonto);
			this.uxIDKonto.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxIDKonto);
			//
			// uxPrimateljLabel
			//
			this.uxPrimateljLabel.Text = "Primatelj:";
			this.uxPrimateljLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxPrimateljLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljLabel);			
			//
			// uxPrimatelj
			//
			this.uxPrimatelj.Width = 250;
			this.uxPrimatelj.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimatelj);
			this.uxPrimatelj.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxPrimatelj);
			//
			// uxIDOrganizacijaLabel
			//
			this.uxIDOrganizacijaLabel.Text = "IDOrganizacija:";
			this.uxIDOrganizacijaLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxIDOrganizacijaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrganizacijaLabel);			
			//
			// uxIDOrganizacija
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrganizacija);
			this.uxIDOrganizacija.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxIDOrganizacija);
			//
			// uxTipStavkeLabel
			//
			this.uxTipStavkeLabel.Text = "TipStavke:";
			this.uxTipStavkeLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxTipStavkeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTipStavkeLabel);			
			//
			// uxTipStavke
			//
			this.uxTipStavke.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTipStavke);
			this.uxTipStavke.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxTipStavke);
			//
			// uxIDKlijentLabel
			//
			this.uxIDKlijentLabel.Text = "IDKlijent:";
			this.uxIDKlijentLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxIDKlijentLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKlijentLabel);			
			//
			// uxIDKlijent
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKlijent);
			this.uxIDKlijent.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxIDKlijent);
			//
			// uxIDBlagajnaIzvjestaj
			//				
			this.uxIDBlagajnaIzvjestaj.DisplayMember = "DatumOd";	
			this.uxIDBlagajnaIzvjestaj.ValueMember = "ID";	
			//
			// uxIDKlijent
			//				
			this.uxIDKlijent.DisplayMember = "ImeKlijenta";	
			this.uxIDKlijent.ValueMember = "ID";	
			//
			// uxIDKonto
			//				
			this.uxIDKonto.DisplayMember = "Sifra";	
			this.uxIDKonto.ValueMember = "ID";	
			// 
			// BlagajnaStavkaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "BlagajnaStavkaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.BlagajnaIzvjestaj> _IDBlagajnaIzvjestajList;
		
		/// <summary>
		/// The ComboBox associated with the IDBlagajnaIzvjestaj property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.BlagajnaIzvjestaj> IDBlagajnaIzvjestajList
		{
			get {return _IDBlagajnaIzvjestajList;}
			set 
			{
				this._IDBlagajnaIzvjestajList = value;
				this.uxIDBlagajnaIzvjestaj.DataSource = null;
				this.uxIDBlagajnaIzvjestaj.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDBlagajnaIzvjestajList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDBlagajnaIzvjestaj property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDBlagajnaIzvjestajList
		{
			get { return _allowNewItemInIDBlagajnaIzvjestajList;}
			set
			{
				this._allowNewItemInIDBlagajnaIzvjestajList = value;
				this.uxIDBlagajnaIzvjestaj.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Klijent> _IDKlijentList;
		
		/// <summary>
		/// The ComboBox associated with the IDKlijent property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Klijent> IDKlijentList
		{
			get {return _IDKlijentList;}
			set 
			{
				this._IDKlijentList = value;
				this.uxIDKlijent.DataSource = null;
				this.uxIDKlijent.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKlijentList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKlijent property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKlijentList
		{
			get { return _allowNewItemInIDKlijentList;}
			set
			{
				this._allowNewItemInIDKlijentList = value;
				this.uxIDKlijent.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Konto> _IDKontoList;
		
		/// <summary>
		/// The ComboBox associated with the IDKonto property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Konto> IDKontoList
		{
			get {return _IDKontoList;}
			set 
			{
				this._IDKontoList = value;
				this.uxIDKonto.DataSource = null;
				this.uxIDKonto.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKontoList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKonto property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKontoList
		{
			get { return _allowNewItemInIDKontoList;}
			set
			{
				this._allowNewItemInIDKontoList = value;
				this.uxIDKonto.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
